package net.wofly.sale.report.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 卡兑换日报
 *
 * @author lign
 * @version 1.0
 * @created 09-4月-2018 22:42:28
 */
@Data
@Entity
@Table(name = "sale_report_cardexchangedailyreport")
@ApiModel(description = "卡兑换日报")
public class CardExchangeDailyReport {
    
    @Id
    private String cardExchangeDailyReportID;
    /**
     * 卡类型
     */
    @ApiModelProperty(value = "卡类型")
    private String cardType;
    /**
     * 卡类型名称
     */
    @ApiModelProperty(value = "卡类型名称")
    private String cardTypeName;
    
    @ApiModelProperty(value = "汇总日期")
    private Long countDate;
    private Long modifyDate;
    @ApiModelProperty(value = "数量")
    private Long num;

    /**
     * 价值
     */
    @ApiModelProperty(value = "价值")
    private Long totalAmount;
    
    private String saleDailyReportID;
    
    /**
     * 被汇总业务经理ID
     */
    @ApiModelProperty(value = "被汇总业务经理ID")
    private String userID;
    
    @ApiModelProperty(value = "被汇总业务经理姓名")
    private String userName;
    
    public CardExchangeDailyReport() {
    
    }

    public CardExchangeDailyReport(String userID, String userName, String cardType, String cardTypeName, Long num, Long totalAmount) {
        this.cardType = cardType;
        this.cardTypeName = cardTypeName;
        this.num = num;
        this.totalAmount = totalAmount;
        this.userID = userID;
        this.userName = userName;
    }
}